import { ref } from 'vue';

export const useComponentRef = <T extends abstract new (...args: any) => any>(comp: T) =>
  ref<InstanceType<typeof comp>>();
